<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		li{
			list-style: none;
			width: 200px;
			height: 200px;
			font-size: 60px;
			text-align: center;
			line-height: 200px;
			position: absolute;
		}
		ul{
			width: 200px;
			height: 200px;
			margin: 100px auto;
			position: relative;
			/*	指定3d空间		*/
			transform-style: preserve-3d;
			transition: all 3s;
		}
		li:nth-child(1){
			background: pink;
			transform: translateX(100px) rotateY(90deg);

		}
		li:nth-child(2){
			background: skyblue;
			transform: translateX(-100px) rotateY(90deg);
		}
		li:nth-child(3){
			background: greenyellow;
			transform: translateY(100px) rotateX(90deg);
		}
		li:nth-child(4){
			background: purple;
			transform: translateY(-100px) rotateX(90deg);
		}
		li:nth-child(5){
			background: orange;
			transform: translateZ(100px) ;
		}
		li:nth-child(6){
			background: yellow;
			transform: translateZ(-100px) ;
		}
		ul:hover{
			transform: rotate3d(1, 1, 1,1000deg);
		}
	</style>
</head>
<body>
	<ul>
		<li>5</li>
		<li>4</li>
		<li>3</li>
		<li>2</li>
		<li>1</li>
		<li>6</li>

	</ul>
</body>
</html>